package com.yyj.shopOnLine.back.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.yyj.shopOnLine.user.pojo.AAdmins;
import com.yyj.shopOnLine.user.service.IUsersService;

@Controller
@RequestMapping("/user")
public class NoLoginController
{
	@Resource
	IUsersService usersService;
	@RequestMapping("/adminsList")
	public String adminsList(HttpServletRequest request)
	{
		Map<String, Object> condMap=new HashMap<String, Object>();
		List<AAdmins> adminsList=usersService.findCondListAdminsService(null, condMap);
		request.setAttribute("adminsList", adminsList);
		return "/back/adminsList";
	}
}
